#include "../include/SockConnector.h"
#include <stdio.h>
#include <iostream>
#include <string>

int main ()
{
    SockStream peer;
    SockConnector connector;
    InetAddr addr (9999, "127.0.0.1");
    connector.connect (peer, addr);
    perror ("connect");
    std::string str("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
    peer.send (str.c_str (), str.length ());
    peer.close ();
    return 0;
}
